Skip to content

Conversation

@namanjain7
Copy link
Contributor

No description provided.

Current test code considers about kernel/common/app1 partition, not about app2 partition.
This commit has been modified to enable testing even when app2 partition present.

Signed-off-by: Jaeyong Lee <jaeyong1.lee@samsung.com>
@namanjain7
Copy link
Contributor Author

#7086 #7087 #7095
PR raised on BK_728N_Support branch

@amandeep-samsung
Copy link
Contributor

This is for OTA test for beken chipset and includes changes done by [jylee9613] for app2 binary support in test.
Other changes are done for having options of running all tests independently.

These are verified on both chipsets; bk7239n and rtl8721csm.

@seokhun-eom24
Copy link
Contributor

Can you test this example is also verified for rtl8730e?

@namanjain7
Copy link
Contributor Author

Can you test this example is also verified for rtl8730e?

verified on ailite board.

Copy link
Contributor

@jylee9613 jylee9613 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

@namanjain7
Copy link
Contributor Author

Added new commit for kernel_update test for new_version.
Version_up was disabled earlier. setting the flag is true so that test do not show fail status even if it's passed.

if (bin_names[i] == KERNEL) {
version_up = true;
}
int version_up = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I set version_up to true only for kernel, because this is kernel update test.
What I intended is that even if only kernel binary is updated, binary manager should load the latest version of kernel and same version of app1/app2.
app1/app2 version update test need to be tested in loadable_sample/wifiapp/binary_update.c

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. I have removed the changes version_up = true related chages.

uint8_t bin_types[] = {BINARY_KERNEL, BINARY_USERAPP, BINARY_USERAPP};
#endif

int bin_count = sizeof(bin_names) / sizeof(bin_names[0]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For safer usage, use static variable.

Suggested change
int bin_count = sizeof(bin_names) / sizeof(bin_names[0]);
static int bin_count = sizeof(bin_names) / sizeof(bin_names[0]);

/* Get info all test. */
binary_update_getinfo_all();

int ret = binary_update_same_version_test();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're printing test result inside binary_update_same_version_test.
How about change code like binary_update_run_tests.
Same for below tests too.

else if (argc == 2 && !strncmp(argv[1], "same_version", 13)) {
    binary_update_getinfo_all();
    return binary_update_same_version_test();
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean success message of the tests are not required because it is already getting printed inside their respective functions?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Same as upper binary_update_run_tests case.

abhinav-s235 and others added 2 commits January 7, 2026 10:32
…rnel update test to accept command line arguments

- Add support for running specific tests: same_version, new_version, invalid, all
- Each test now runs independently with proper error handling
- Update main function to parse argc/argv and call appropriate test functions
… update tests separately

This commit modifies the wifiapp to allow users to run individual binary update tests instead of only running all tests together
@namanjain7
Copy link
Contributor Author

Requested changes done. kindly merge.

@namanjain7 namanjain7 closed this Jan 7, 2026
@namanjain7 namanjain7 reopened this Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants